package com.jnevision.train.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 培训记录表
 * </p>
 *
 * @author gavin
 * @since 2019-07-23
 */
@TableName("b_train")
public class Train extends Model<Train> {


	private static final long serialVersionUID = -7842429767447718806L;

	@TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课题
     */
    @TableField("title")
    private String title;

    /**
     * 培训人员id
     */
    @TableField("user_id")
    private String userId;
    
    @TableField("user_name")
    private String userName;

    /**
     * 培训时间
     */
    @TableField("create_time")
    private String createTime;

    /**
     * 受训人员
     */
    @TableField("train_id")
    private String trainId;
    
    @TableField("train_name")
    private String trainName;

    /**
     * 培训图片
     */
    @TableField("img")
    private String img;

    /**
     * 教案
     */
    @TableField("file")
    private String file;
    

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getTrainId() {
        return trainId;
    }

    public void setTrainId(String trainId) {
        this.trainId = trainId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }
    
    

    public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}


	public String getTrainName() {
		return trainName;
	}

	public void setTrainName(String trainName) {
		this.trainName = trainName;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

	@Override
	public String toString() {
		return "Train [id=" + id + ", title=" + title + ", userId=" + userId + ", userName=" + userName
				+ ", createTime=" + createTime + ", trainId=" + trainId + ", trainName=" + trainName + ", img=" + img
				+ ", file=" + file + "]";
	}

	

}